#ifndef DYN_QUAD_QGAUSS2_H
#define DYN_QUAD_QGAUSS2_H

#include "dyn_quad_qGauss.h"

/*! \author Joey Dumont <joey.dumont@gmail.com>
 *
 *  \date 2012-10-07
 *
 *  \brief Gaussian integration with \f$N=2\f$.
 *
 * We declare the abscissas and weights
 * associated with \f$N=2\f$ Gaussian quadrature.
 * The values are taken from Abramowitz and Stegun.
 */

class qGauss2 : public qGauss
{
public:
    /*! Standard constructor. */
    qGauss2(Functor &_func,
            double _a,
            double _b);

    /*! Populate the vectors. */
    void populateVectors();

protected:
    /*! @name Abscissas */
    //@{
    double x1 = 0.577350269189626;
    //@}

    /*! @name Weights */
    //@{
    double w1 = 1.0;
    //@}
};

#endif // DYN_QUAD_QGAUSS2_H
